﻿namespace Wizard.Functions
{
    using Wizard.Runtime;
    public abstract class TwoParams<Param1Type, Param2Type, ResultType> : OneParam<Param1Type, ResultType>
    {
        protected readonly IHasValue<Param2Type> mParam2;

        protected TwoParams(string name, FunctionType type, IHasValue<Param1Type> param1, IHasValue<Param2Type> param2)
            : base(name, type, param1)
        {
            mParam2 = param2;
            mParam2.ValueChanged += OnParamChanged;
        }
    }
}